import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/hesuan',
    name: 'Hesuan',
    component:() => import ('../views/Hesuan/index.vue')
  },
  {
    path: '/area',
    name: 'Area',
    component:() => import ('../views/Area/index.vue')
  },
  {
    path:'/prevention',
    name:'Prevention',
    component:() => import ('../views/Prevention/index.vue')
  },
  {
    path:'/citys/:cityname',
    name:'Citys',
    component:() => import ('../views/Citys/Citys.vue'),
    props:true
  },
  {
    path:'/travel',
    name:'Travel',
    component:()=>import('../views/Travel/Travel.vue')
  },
  {
    path:'/selectCity',
    name:'SelectCity',
    component:()=>import('../views/SelectCity/SelectCity.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router